<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>注册</title>
<link rel="stylesheet" href="static/css/base.css" media="all">
<style type="text/css">
body {
	background-image: url(static/img/bg.png);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	-moz-background-size: 100% 100%;
}

form {
	top: 25%;
    position: relative;
	margin: auto;
	width: 275px;
	min-height: 280px;
	padding: 30px;
	background-color: white;
	padding-left: 50px;
	padding-right: 50px;
}

.login-bt {
	width: 100%;
}

h3 {
	text-align: center;
}
img{
    width: 90px;
    position: absolute;
    top: -45px;
    left: calc(50% - 45px);
}
.hp-form-item:nth-of-type(1) {
    margin-top: 35px;
}
</style>
</head>
<body>
	<form class="hp-form" action="admin/user/register" method="post">
		<img alt="" src="static/img/user.png">
		<div class="hp-form-item">
			<h3>家庭记账本-注册</h3>
		</div>
		<div class="hp-form-item">
			<input class="hp-form-input" placeholder="注册账号" name="username">
		</div>
		<div class="hp-form-item">
			<input class="hp-form-input" placeholder="注册密码" name="password" type="password">
		</div>
		<div class="hp-form-item">
			<input class="hp-form-input" placeholder="确认密码" name="confirmPassword" type="password">
		</div>
		<% if(request.getAttribute("msg")!=null){ %>
		<div class="hp-form-item">
			<label style="color: red"><%=request.getAttribute("msg") %></label>
		</div>
		<% } %>
		<div class="hp-form-item">
			<input class="hp-form-bt login-bt" type="submit" value="注册">
		</div>
		<div class="hp-form-item">
			<a href="login.jsp" style="float: right; font-size: 12px;">已有账号？去登录</a>
		</div>
	</form>
	<div class="footer">
		<p>
			武汉市厚溥教育科技有限公司 版权所有@2018-2015 技术支持：0000-0000000
		</p>
	</div>

</body>
</html>